<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
     <?php
            if(sfContext::getInstance()->getUser()->isAuthenticated()) {
                $ssn_user = sfContext::getInstance()->getUser();
                $username= $ssn_user->getGuardUser()->getUsername();
                $ssn_user->setCulture("es_PA");
                $culture = $ssn_user->getCulture();
                
                echo "<div>Username: $username </div>";
                echo "<div>Culture: $culture </div>";
                echo link_to('Logout', '@sf_guard_signout');
            }
            ?>     
      <?php  if(sfContext::getInstance()->getUser()->isAuthenticated()) :?>
      <div class="menu">
          <a href="<?php echo url_for('employee/index') ?>">List Employees</a>
          <a href="<?php echo url_for('brand/index') ?>">List Brands</a>
          <a href="<?php echo url_for('position/index') ?>">List Positions</a>
          <a href="<?php echo url_for('shifts/index') ?>">List Shifts</a>
          <a href="<?php echo url_for('payperiod/index') ?>">Listar Periodos de Pago</a>
          <a href="<?php echo url_for('timecards/index') ?>">List Time Cards</a>
      </div>
      <?php endif;?>
    <?php echo $sf_content ?>
  </body>
</html>
